﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    DLULearningNetworkModel.Account curAccount = DLULearningNetwork.ActionFilterAttributes.RequireUserLogin.LoginUser;
    DLULearningNetworkModel.Account accountOwner = ViewBag.AccountOwner;
}
@using DLULearningNetwork.Libs;
@section cssjs {
    @if (ViewBag.ShowMakeFriend || ViewBag.WaitingAccept != null)
    {
        <script type="text/javascript" src="../../Scripts/Custom/jsFriendActivity.js"></script>
    }
    <link href="@Url.Content("~/Content/Homepage.css")"rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/ButtonStyle.css")"rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/MyVerticalMenu.css")"rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../Scripts/jquery.json-2.2.min.js"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/Custom/jsFriendActivity.js")">
    
    </script>
    @RenderSection("cssjs")
}
<!--header-->
<div id="header" style="z-index: 2000; position: relative;">
    <div class="siteName">
        Mạng học tập trường Đại học Đà Lạt
    </div>
    <div id="topMenu">
        <ul>
            <li><a href="/Home/HomePage">Trang chủ</a></li>
            <li><a href="/UserPage/UserHome/@curAccount.Nickname_s">Trang cá nhân</a></li>
            <li><a href="#" onclick="return false;">Tài khoản ▼</a>
                <div class="SubMenu">
                    <ul>
                        <li><a href="/Privacy/">Cài đặt riêng tư</a></li>
                        <li><a href="/Profile/Edit">Cập nhật thông tin</a></li>
                        <li><a href="/Account/Logout">Thoát</a></li>
                    </ul>
                </div>
            </li>
        </ul>
    </div>
</div>
<!--end Header-->
<div id="main">
    <div id="col-info">
        <div id="avar-pf" class="avar-pf">
            <a href="/UserPage/UserHome/@accountOwner.Nickname_s">
                @if (!string.IsNullOrEmpty(accountOwner.Avatar_s))
                {
                    <img alt="avatar profile" src="@Url.Content(@accountOwner.Avatar_s.Replace("Original", "Large"))" />
                }
                else
                { 
                    <img alt="avatar profile" src="@Url.Content("~/Content/Images/avatar.gif")" />
                }
            </a>
            @if (ViewBag.FriendIDWaiting != null)
            {
                <a href="#" class="dlubtn" style="margin: 2px auto;" 
                   onclick = "return AcceptFriendRelation('@ViewBag.FriendIDWaiting',this);">Chấp nhận
                    kết bạn</a>
            }
            else
            {
                if (ViewBag.IsWaiting != null && ViewBag.IsWaiting == true)
                { 
                    <a href="#" class="dlubtn" style="margin: 2px auto;" >Đang chờ đồng ý</a> 
                }
                if (ViewBag.ShowMakeFriend != null && ViewBag.ShowMakeFriend == true)
                {
                <a href="#" class="dlubtn" style="margin: 2px auto;" 
                    onclick="return MakeFriend('@accountOwner.AccountID_u',this);" >Kết bạn</a>       
                }
            }
        </div>
        <div style="clear: both;">
        </div>
        <div style="display:none;">
        @RenderSection("userPageMenu")
        </div>
        @Html.Partial("VerticalMenu", DLULearningNetwork.ViewModels.VerticalMenu.CreateUserPageMenu(ViewBag.AccountOwner as DLULearningNetworkModel.Account))
    </div>
    <div id="main-content">
        <div id="left-content">
            @RenderSection("leftContent")
        </div>
        <div id="right-box" style="z-index: 1000;">
            @RenderSection("rightBox")
        </div>
    </div>
    <div style="clear: both;">
    </div>
</div>
<div style="clear: both;">
</div>
<div id="footer">
    Mạng học tập Đại học Đà Lạt<br />
    Copyright &copy; 2011 Cactus. All rights reserved.<br />
    Powered by Cactus
</div>
